package dataStructures;
import java.util.ArrayList;
import packets.LSA;

/**
 * Diese Klasse repräsnetiert die Link State Datenbank gemäß des OSPF Protokolls.
 * @author pascal
 *
 */
public class LSDataBase {
	
	private static LSDataBase instance = null;
	
	private ArrayList<LSA> LinkStateAdvertisements;
	
	
	
	public void addLSA(LSA lsa) {
	
	}
	
	public boolean hasMoreRecent(LSA lsa){
		
		return true;
	}
	
	private LSDataBase(){
		LinkStateAdvertisements = new ArrayList<LSA>();
	}
	
	public static LSDataBase getInstance(){
		if(instance == null){
			instance = new LSDataBase();
		}
		return instance;
	}

}
